using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Text;
using Edge.Business.Domain;
using Edge.Common.ComponentModel;

namespace Shop.Business.Domain.Catalog.Parameter
{
    [Serializable]
    public class ParameterValueFilter : BaseFilter, ITextSearchSupported
    {
        private string keyword;
        private Parameter parameter;

        public string GetText()
        {
            return keyword;
        }

        public void SetText(string text)
        {
            keyword = text;
        }

        [Browsable(true),
         Description("Keyword"),
         Required(false),
         Category("Advanced Search"),
         Order(1)]
        public string Keyword
        {
            get { return keyword; }
            set { keyword = value; }
        }

        public Parameter Parameter
        {
            get { return parameter; }
            set { parameter = value; }
        }

        protected bool atMenu = false;

        public bool AtMenu
        {
            get { return atMenu; }
            set { atMenu = value; }
        }
    }

    public class SizeValueFilter : BaseFilter
    {

        protected ProductGroup group;


        public ProductGroup Group
        {
            get { return group; }
            set { group = value; }
        }
    }
}